package com.keon.jianbao.bean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by keon on 2015/8/24.
 */
public class Result {
    private int status;
    private String tips;
    private String content;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Result(byte[] responseBody) throws JSONException {
        String response = new String(responseBody);
        JSONObject json = new JSONObject(response);
        this.status = json.getInt("status");
        this.tips = json.getString("tips");
        this.content = json.getString("content");
    }
}
